@import "normalize.css";
@import "font-awesome.min.css";
@import "buttons.css";
$headerColor:#8e2800;
$color1:#800;
%oneline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

%textshadow {
  text-shadow: 1px 1px 2px rgba(black, .5);
}

body {
  font-family: "Microsoft Yahei";
}

a {
  text-decoration: none;
}

.manageweixin-wrapper {
  width: 640px;
  margin: 0 auto;
}

header {
  h1 {
    font-size: 1.8em;
    padding: 0.5em;
    background-color: $headerColor;
    color: white;
    //@extend %oneline;
    margin: 0;
    @extend %textshadow;
  }
  img {
    display: block;
    width: 100%;
  }
}

.manageweixin-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  //justify-content: space-between;
  .manageweixin-menu-item {
    a {
      display: block;
      width: 160px;
      box-sizing: border-box;
      text-align: center;
      height: 180px;
      border: 1px solid #efefef;
      position: relative;
      transition: all .2s;
      &:hover span {
        transform: scale(1.2);
        font-weight: bold;
        //border:none;
      }
    }
    span {
      color: darkcyan;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 10px;
      @extend %oneline;
      font-size: 1.4em;
      transition: all .2s;
    }
  }
  @for $i from 1 to 8 {
    .manageweixin-menu-item:nth-child(#{$i}) a {
      background:url(manageimg/menu-list-#{$i}.png) center 40px no-repeat;
      background-size: 80px;
    }
  }
}

footer {
  position: fixed;
  bottom: 10px;
  width: 640px;
  //right: 10px;
  display: flex;
  //flex-flow: column;
  justify-content: space-between;
}

#manageweixin-returnindex,
#manageweixin-returntop {
  //  font-family: "Microsoft Yahei";
  //  width:240px;
  //  margin:0 10px;
  //  border:1px solid #ccc;
  border-radius: 100%;
  width: 80px;
  height: 80px;
  background: rgba(black, .2);
  display: table;
  text-align: center;
  i {
    font-size: 2em;
    display: table-cell;
    vertical-align: middle;
    color: white;
  }
}

#manageweixin-returnindex {
  margin-left: 30px;
}

#manageweixin-returntop {
  margin-right: 30px;
}

#returnindex2 {
  background-color: white;
  background-image: linear-gradient(bottom, rgba($color1, 1), rgba($color1, .5));
  color: white;
  text-align: center;
  height: 70px;
  line-height: 70px;
  font-size: 2em;
  width: 40%;
  border-radius: 40px;
  box-sizing: border-box;
  border: 2px solid white;
  box-shadow: 0 -1px 3px rgba(black, .3);
  &:active {
    background-image: linear-gradient(top, rgba($color1, 1), rgba($color1, .5));
  }
}

.manageweixin-graphname {
  margin: 0;
  padding: 0.2em;
  font-size: 1.8em;
  border-bottom: 2px dashed $color1;
}

.manageweixin-guildlevel {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  li {
    a {
      display: block;
      //width: 140px;
      text-align: center;
      padding: 0 1em 0 1.3em;
      height: 40px;
      line-height: 40px;
      color: black;
      font-weight: bold;
      background-color: orange;
      position: relative;
      border: 4px solid white;
      box-shadow: 1px 1px 3px rgba(black, .3);
      &:after {
        content: "";
        display: block;
        position: absolute;
        width: 28px;
        height: 28px;
        background-color: orange;
        transform: rotate(45deg);
        z-index: 999;
        top: 4px;
        right: -20px;
        border-top: 4px solid white;
        border-right: 4px solid white;
        box-shadow: 2px -2px 1px rgba(black, .3);
      }
    }
  }
}

.manageweixin-table-cartogram {
  display: flex;
  margin: 15px 0;
  .manageweixin-table-button,
  .manageweixin-cartogram-button {
    display: block;
    flex: 1;
    text-align: right;
    height: 70px;
    line-height: 70px;
    color: black;
    //border: 1px solid rgba($color1,.5);
    box-sizing: border-box;
    padding-right: 1em;
    font-weight: bold;
    font-size: 1.5em;
  }
  .manageweixin-table-button {
    background: rgba($color1, .1) url(manageimg/table2.png) 0 center no-repeat;
    background-size: 50%;
  }
  .manageweixin-cartogram-button {
    background: rgba($color1, .1) url(manageimg/graph.png) 0 center no-repeat;
    background-size: 50%;
  }
}

.manageweixin-cartogram-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  .manageweixin-cartogram-item {
    display: block;
    width: 200px;
    //background-color: rgba($color1, .5);
    margin-bottom: 10px;
    text-align: center;
    height: 70px;
    line-height: 70px;
    color: black;
    font-size: 1.4em;
    //@extend %textshadow;
    font-weight: bold;
    border-radius: .25em;
    font-family: "Microsoft Yahei";
    padding: 0;
  }
  .manageweixin-active {
    background: rgba($color1, .6);
    color: white;
  }
}

.manageweixin-content {
  margin-bottom: 100px;
  margin-top: 10px;
  padding: 10px;
  border-top: 2px dashed $color1;
}

.manageweixin-table-normal {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4em;
  thead {
    background-color: #dcf7f6;
  }
  td,
  th {
    border: 1px solid #dfdfdf;
  }
  th {
    text-align: left;
    color: #02335b;
    padding: 5px;
    border-bottom-width: 2px;
  }
  td {
    padding: 15px 5px;
  }
  a {
    color: black;
    display: block;
    width: 100%;
  }
  tbody {
    tr:nth-child(even) {
      background-color: rgba(239, 239, 239, 0.4);
    }
  }
}

#memberlistGraph {
  width: 95%;
}

.manageweixin-timeselect {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  a {
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    font-weight: bold;
    display: inline-block;
    background: linear-gradient(bottom, #ccc, #efefef);
    //border:1px solid #ccc;
    border-radius: 100%;
    color: black;
    font-size: 1.2em;
  }
  .manageweixin-active {
    background: rgba($color1, .6);
    color: white;
    transform: rotateZ(360deg);
    transition: all .3s;
  }
}

.manageweixin-loading {
  position: fixed;
  top: 60%;
  left: 50%;
  z-index: 9999;
  width: 6em;
  height: 6em;
  line-height: 6em;
  text-align: center;
  margin-left: -3em;
  animation: xuanzhuan 1s linear infinite;
  i {
    font-size: 6em;
    color: rgba(black, .6);
  }
  @keyframes xuanzhuan {
    from {
      transform: rotate(0);
    }
    to {
      transform: rotate(360deg);
    }
  }
}
